package com.accesshollywood.grfxOrdering.orderTreeSpecial;

import java.awt.Dimension;

import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

import com.accesshollywood.grfxOrdering.ComboBoxPlus;
import com.accesshollywood.grfxOrdering.basics.Destinations;
import com.accesshollywood.grfxOrdering.basics.Users;
import com.accesshollywood.grfxOrdering.orderTreeSpecial.models.SpecificsTableModel;
import com.accesshollywood.indexables.GrfxOrder;

import javax.swing.border.EtchedBorder;
import javax.swing.JComboBox;

public class SpecificsPanel extends JPanel {
	/*
	GrfxOrder currOrder;
	
	public SpecificsPanel(SpecificsTableModel currSpecifics) {
		setMinimumSize(new Dimension(500, 60));
		setPreferredSize(new Dimension(500, 60));
		setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		currOrder = (GrfxOrder)currSpecifics.grfxOrder;
		setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		createPanel();
	}
	
	public void createPanel(){
		
		JPanel ordererPanel = new JPanel();
		ordererPanel.setBorder(new TitledBorder(null, "Ordered By", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		add(ordererPanel);
		ordererPanel.setLayout(new BoxLayout(ordererPanel, BoxLayout.X_AXIS));
		
		JComboBox comboBox = new JComboBox();
		comboBox.setMaximumSize(new Dimension(32767, 20));
		comboBox.setPreferredSize(new Dimension(150, 20));
		comboBox.setMinimumSize(new Dimension(150, 20));
		ordererPanel.add(comboBox);
		JPanel producerPanel = new JPanel();
		producerPanel.setBorder(new TitledBorder(null, "Producer", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		add(producerPanel);
		producerPanel.setLayout(new BoxLayout(producerPanel, BoxLayout.X_AXIS));
		
		ComboBoxPlus comboBoxProducer = new ComboBoxPlus("",null);
		comboBoxProducer.setModel(Users.producerUsers);
		comboBoxProducer.setRenderer(comboBoxProducer.new ComboBoxPlusUserRenderer());
		comboBoxProducer.setSelectedItem(currOrder.getProducer());
		comboBoxProducer.setEnabled(false);
		comboBoxProducer.setPreferredSize(new Dimension(150, 20));
		comboBoxProducer.setMinimumSize(new Dimension(150, 20));
		comboBoxProducer.setMaximumSize(new Dimension(32767, 20));
		producerPanel.add(comboBoxProducer);
		
		JPanel destinationPanel = new JPanel();
		destinationPanel.setBorder(new TitledBorder(null, "Destination", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		add(destinationPanel);
		destinationPanel.setLayout(new BoxLayout(destinationPanel, BoxLayout.X_AXIS));
		
		ComboBoxPlus comboBoxDestination = new ComboBoxPlus("",null);
		comboBoxDestination.setModel(Destinations.destinations);
		comboBoxDestination.setRenderer(comboBoxDestination.new ComboBoxPlusDestinationRenderer());
		comboBoxDestination.setSelectedItem(currOrder.getDestination());
		comboBoxDestination.setEnabled(false);
		comboBoxDestination.setPreferredSize(new Dimension(150, 20));
		comboBoxDestination.setMaximumSize(new Dimension(32767, 20));
		comboBoxDestination.setMinimumSize(new Dimension(150, 20));
		destinationPanel.add(comboBoxDestination);
	}
*/
}
